package com.zds.mydatabinding;

import android.databinding.BaseObservable;
import android.databinding.Bindable;


/**
 * Created by 周德森
 * Created time 2017/8/23 11:21
 * Description:MyDatabinding
 * Version: V 1.0
 */

public class Student extends BaseObservable{
    @Bindable
    private String mame;
    @Bindable
    private String age;

    public Student(String mame, String age) {
        this.mame = mame;
        this.age = age;
    }

    public String getMame() {
        return mame;
    }

    public void setMame(String mame) {
        this.mame = mame;
        notifyPropertyChanged(com.zds.mydatabinding.BR.mame);
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
        notifyPropertyChanged(com.zds.mydatabinding.BR.age);
    }
}
